package com.crm.dao.mapper.customMapper.customerManagerCustomMapper;

import com.crm.model.entity.customerManager.Customer;
import com.crm.model.entity.customerManager.CustomerRelation;
import com.crm.model.qo.customerManager.AnalyseCustomerQO;
import com.crm.model.qo.customerManager.CustomerQO;
import com.crm.model.qo.customerManager.MoveCustomerQO;
import com.crm.model.vo.contactManager.IndustryAreaVO;
import com.crm.model.vo.customerManager.*;
import com.crm.model.vo.datasearch.DataSearchResultVO;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.HashMap;
import java.util.List;

/**
 * @ Author ：pym
 * @ Date   ：2021/1/18 15:58
 */
public interface CustomerRelationCustomMapper {

    /**
     * 客户关联审核列表
     * @param dateType 全部  all  本月 thisMonth 本周 thisWeek
     * @param customerName 客户名称
     * @return
     */
    List<CustomerRelationVO> examineCustomerRelationList(@Param("dateType")Integer dateType,@Param("customerName")String customerName);

    /**
     *通过客户id和违规时间查询客户关联信息
     * @param customerId 客户id
     * @return
     */
    CustomerRelation selectCustomerRelationViolationTm(@Param("customerId")String customerId);

    /**
     * 修改客户关联 抹掉违规时间
     * @param relation 关联
     * @return
     */
    Boolean updateRelation(@Param("relation") CustomerRelation relation);
}
